package vue.panels;

import javax.swing.*;

import vue.components.*;

/**
 * <p>Title: vue.TablePanel </p>
 *
 * <p>Description: Ce panneau contient le panneau de jeu et le chat de la table </p>
 *
 * <p>Copyright: (c) 2008 FSSIM</p>
 *
 * <p>Company: FSSImock</p>
 *
 * @author Antoine Farnault
 * @author Augustin Couette
 * @version 1.0
 */
public class TablePanel extends TPPanel {
    
	private static final long serialVersionUID = 1L;
	
	// Variables declaration
    public ChatPanel chatPanel;
    public JeuPanel jeuPanel;
    // End of variables declaration
    
    /** Creates new form TablePanel */
    public TablePanel(ChatPanel chatPanel, JeuPanel jeuPanel) {
    	this.chatPanel = chatPanel;
    	this.jeuPanel  = jeuPanel;
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     */
    private void initComponents() {
    	setName("tablePanel");

        GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(jeuPanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(chatPanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jeuPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(chatPanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }
}

